package com.crp.broker.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.crp.broker.dao.IUserDAO;
import com.crp.broker.entity.User;
import com.crp.broker.model.UserBean;
import com.crp.broker.service.IUserService;
import com.crp.broker.util.BeanUtil;

@Service(value = "iUserService")
public class UserServiceImpl implements IUserService {
    @Resource
    private IUserDAO iUserDAO;

    @Override
    public UserBean getUserById(long uid) {
        User user = iUserDAO.getUserById(uid);
        return BeanUtil.build(user);
    }

}
